package com.hxq.demo.proxy.dynamic.cglib;

import com.hxq.demo.proxy.TrainStation;

public class TestCglibDynamic {
    public static void main(String[] args) {
        //创建代理工厂
        ProxyFactory proxyFactory = new ProxyFactory();
        //获取代理对象
        TrainStation proxyObject = proxyFactory.getProxyObject();
        proxyObject.sell();
        proxyObject.sell2();
    }
}
